
import { systemConfig } from '../api/config.js'
const state = {
	system_config: {}
}

const mutations = {
	setConfig(state, config) {
		state.system_config = config
	},
}

const actions = {
	getSystemConfig({commit}) {
		systemConfig().then(res=> {
			if(res.code==200) {
				commit("setConfig", res.data)
			}
		})
	}
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
};